const ejs = require("ejs");
const fs = require("fs");

const xiyou = ["唐僧", "孙悟空", "猪八戒", "沙僧"];

const str = fs.readFileSync(__dirname + "/西游.html").toString();

let result = ejs.render(str, { xiyou });

console.log(result);
